package com.yuyou.tas.admin.service;

import java.util.Date;
import java.util.List;

import com.yuyou.tas.service.api.admin.entity.CommJob;
import com.yuyou.tas.util.bean.ResBoolSimpleInfo;


public interface ICommJobService {
    int deleteByPrimaryKey(Long id);

    int insert(CommJob record);

    CommJob selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CommJob record);

    ResBoolSimpleInfo<String> updateLoadedJob(Long allotTempId);
    
    ResBoolSimpleInfo<String> updateJobStatus(Long fId,Integer type,String tag,Integer status);

	List<CommJob> findLoadedJob(Long allotTempId);

	/**
	 * 添加一个job
	 * @param fId
	 * @param type
	 * @param tag
	 * @return
	 */
	ResBoolSimpleInfo<String> addJob(Long fId, Integer type, String tag);


	/**
	 * 插入多个job
	 * @param list
	 */
	void insertJobs(List<CommJob> list);
	
	List<CommJob> findAlarmCommJob(Date time);
	
	/**
	 * job告警
	 */
	void alarmCommJob();
}